<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>

     var arr = [1,2,3,4,5,6,7,8,9];

     // console.log(arr[0]);
     // console.log(arr[1]);
     // console.log(arr[2]);

     //数组的遍历（就是打开数组，一个一个值的取出来） 借助了 循环

    for(var i = 0 ; i < 9;i++){
        console.log(arr[i]);
    }

</script>
</body>
</html>